<script>
    $(document).ready(function(){
        $('.cancela').click(function(){
           $('#areaTroca').fadeOut(600);
        });
        
        $('#idata').datepicker({dateFormat:'dd/mm/yy'}); 
       
       $('#hoje').click(function(check){
          if($('#hoje').is(':checked'))
              $('#idata').val('<?php echo mdate('%d/%m/%Y')?>');
          else
              $('#idata').val('');
       });
    });
</script>
<h1>Confirmar Conteudo</h1><hr>
<?php echo form_open('relatorio/confirmandoConteudo')?>
<?php echo form_hidden('id',$projeto_id);?>
<table class="tabulacao">
    <tr>
        <td><?php echo form_label('Data:')?></td>
        <td>
            <?php echo form_input('data','','id="idata"')?>
            <?php echo form_checkbox('',0,'','id=hoje')?>Hoje
        </td>
    </tr>
    <tr>
        <td><?php echo form_submit('','Confirmar')?></td>
        <td><?php echo form_button('','Cancelar','class="cancela"')?></td>
    </tr>
</table>
<?php echo form_close()?>